package operation;

import cars.Factory;

import java.awt.*;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mac
 * Date: 2022-11-28
 * Time: 16:01
 */
public class AddVehicle implements IOperation{
    @Override
    public void work(Factory factory) {
        System.out.println("请输入要增加的汽车基本信息: 1.轿车 2.客车 3.卡车");
        int choice = scanner.nextInt();
        factory.addVehicle(choice);
    }
}
